home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ETO Development Tools 1
/
ETO Development Tools 1.iso
/
Tools - Objects
/
Installation Folder
/
SADE Install
< prev
next >
Wrap
Text File
|
1990-07-23
|
3KB
|
103 lines
# S A D E I N S T A L L A T I O N S C R I P T
#
# Copyright Apple Computer, Inc. 1990 - All rights reserved.
#
#
# This script is used to install either SADE 1.0, 1.1 or 1.2a1 from the
# E.T.O. #1 distribution compact disk into a folder called "SADE Folder"
# on the destination hard disk.
#
# Options: None
#
# This script makes use of the following Shell variables:
#
# {CDVolume} - the name of the CD Distribution volume
#
# {SystemFolder} - the path to the folder containing the currently active System
#
# {DestVolume} - the name of the volume from which the Installer was launched
#
# {SADEOption} - a flag used to indicate which version of SADE to install
#
# {MPWSource} - the path to the various MPW and SADE versions
#
If "{SADEOption}" == 1 ### install SADE 1.0
set Source "{MPWSource}MPW 3.0:SADE 1.0:"
Else If "{SADEOption}" == 2 ### install SADE 1.1
set Source "{MPWSource}MPW 3.1:SADE 1.1:"
Else If "{SADEOption}" == 3 ### install SADE 1.2a2
set Source "{MPWSource}MPW 3.2 EXP1:SADE 1.2b1:"
Else
Exit 1
End
### First, copy SADE's Multifinder and DA Handler into the System Folder
### See if MultiFinder already exists, if so, rename it to "MultiFinder.Old"
if "`Exists -f "{SystemFolder}MultiFinder"`"
If "`Exists -f "{SystemFolder}MultiFinder.Old"`"
Delete -y "{SystemFolder}MultiFinder.Old"
End
Rename -y "{SystemFolder}MultiFinder" "{SystemFolder}MultiFinder.Old"
End
Duplicate -y "{Source}Multifinder" "{SystemFolder}MultiFinder"
### See if DA Handler already exists, if so, rename it to "DA Handler.Old"
If "`Exists -f "{Source}DA Handler"`" ### doesn't exist in SADE 1.0
If "`Exists -f "{SystemFolder}DA Handler"`"
If "`Exists -f "{SystemFolder}DA Handler.Old"`"
Delete -y "{SystemFolder}DA Handler.Old"
End
Rename -y "{SystemFolder}DA Handler" "{SystemFolder}DA Handler.Old"
End
Duplicate -y "{Source}DA Handler" "{SystemFolder}DA Handler"
End
### Now, copy the rest of the stuff
### See if a folder called "SADE Folder" already exists,
### if so, rename it to "SADE Folder.Old"
if "`Exists -d "{DestVolume}SADE Folder"`"
If "`Exists -f "{DestVolume}SADE Folder.Old"`"
Delete -y "{DestVolume}SADE Folder.Old"
End
Rename -y "{DestVolume}SADE Folder" "{DestVolume}SADE Folder.Old"
End
NewFolder "{DestVolume}SADE Folder"
Duplicate -y "{Source}SADE:SADE" "{DestVolume}SADE Folder:SADE"
Duplicate -y "{Source}SADE:SADE.Help" "{DestVolume}SADE Folder:SADE.Help"
Duplicate -y "{Source}SADE:SADE New User Worksheet" "{DestVolume}SADE Folder:SADE New User Worksheet"
Duplicate -y "{Source}SADE:SysErrs.Err" "{DestVolume}SADE Folder:SysErrs.Err"
Duplicate -y "{Source}SADE:SADEUserStartup" "{DestVolume}SADE Folder:SADEUserStartup"
Duplicate -y "{Source}SADE:SADEStartUp" "{DestVolume}SADE Folder:SADEStartUp"
Duplicate -y "{Source}SADEScripts:" "{DestVolume}SADE Folder:SADEScripts:"
### That's It!
### Special Case for SADE 1.0 - New 'LIB' tool required
If "{SADEOption}" == 1
if "`Exists -d "{DestVolume}MPW Folder"`"
Duplicate -y "{Source}Tools:Lib" "{DestVolume}MPW Folder:Tools:Lib"
End
End
Exit 0